/*
 * GeoVISTA Center (Penn State, Dept. of Geography)
 * Copyright (c), 2003-2011,  Jin Chen and Alan M. MacEachren, GeoVISTA Center, Penn State University
 * Licensed under Simplified BSD License
 *
 *
 * @author: jin Chen 
 * @date: May 30, 2005$
 * @version: 1.0
 */
package edu.psu.geovista.app.hce.clustering.matrix;

import javax.datamining.clustering.Cluster;
import java.util.Arrays;
import java.util.List;

public class DfClusterDialogMatrixFloat extends DfDialogMatrixFloat{
    private List clusters;//<Cluster>

    public DfClusterDialogMatrixFloat(List matrixData) {
        super(matrixData);

    }

    public DfClusterDialogMatrixFloat(int size) {
        super(size);
    }
    public void addCluster(Cluster cluster){
        clusters.add(cluster);
    }

   public void delete(int indexs[]){
      super.delete(indexs);
       // 
      Arrays.sort(indexs);
      for (int i=indexs.length -1;i>=0;i--){
          clusters.remove(indexs[i]);
      }
   }

    public List getClusters() {
        return clusters;
    }

    public void setClusters(List clusters) {
        this.clusters = clusters;
    }


}
